//
//  WDArrivalScanCarRequest.m
//  wd-serviceapp
//
//  Created by Bin Tang on 2024/8/22.
//

#import "WDArrivalScanCarRequest.h"

@interface WDArrivalScanCarRequest ()

@property (nonatomic, strong) WDArrivalScanCarReqModel *reqModel;

@end

@implementation WDArrivalScanCarRequest

- (instancetype)initWithModel:(WDArrivalScanCarReqModel *)model {
    if (self = [super init]) {
        self.reqModel = model;
    }
    return self;
}

- (NSString *)requestUrl {
    return kSTATION_TASK_ARRIVAL_SCAN_CAR;
}

- (TYZRequestSerializerType)requestSerializerType {
    return TYZRequestSerializerTypeJSON;
}

- (TYZRequestMethod)requestMethod {
    return TYZRequestMethodPOST;
}

- (id)requestArgument {
    NSDictionary *params = [self.reqModel yy_modelToJSONObject];
    return params;
}

- (Class)rspClass {
    return [WDArrivalServiceItemModel class];
}
//
//- (Class)recordsRspClass {
//    return [WDArrivalServiceItemModel class];
//}

@end
